import React, { Component } from 'react'
import * as echarts from 'echarts';
import 'echarts/map/js/china';
import './conterTop.scss';

var allData = {
　　　　"citys":[{"name":"延寿","value":[128.331644,45.451897,2],"symbolSize":20,"itemStyle":{"normal":{"color":"#F58158"}}},
{"name":"临江","value":[126.918087,41.811979,2],"symbolSize":2,"itemStyle":{"normal":{"color":"#F58158"}}},
{"name":"长春","value":[125.323544,43.817072,8],"symbolSize":2,"itemStyle":{"normal":{"color":"#F58158"}}}],
"moveLines": [
    {
      fromName: '黑龙江',
      toName: '珠海',
      coords: [
        [126.661669, 45.742347],
        [113.576726, 22.270715],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '舒兰',
      coords: [
        [126.661669, 45.742347],
        [126.965607, 44.406106],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '大连',
      coords: [
        [126.661669, 45.742347],
        [121.614682, 38.914003],
      ],
    },
    {
      fromName: '辽宁',
      toName: '集安',
      coords: [
        [123.42944, 41.835441],
        [126.194031, 41.125307],
      ],
    },
    {
      fromName: '吉林',
      toName: '抚顺',
      coords: [
        [126.549572, 43.837883],
        [123.957208, 41.880872],
      ],
    },
    {
      fromName: '山东',
      toName: '南京',
      coords: [
        [117.020359, 36.66853],
        [118.796877, 32.060255],
      ],
    },
    {
      fromName: '北京',
      toName: '沈阳',
      coords: [
        [116.407526, 39.90403],
        [123.431475, 41.805698],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '环翠',
      coords: [
        [126.661669, 45.742347],
        [122.123444, 37.501991],
      ],
    },
    {
      fromName: '天津',
      toName: '大连',
      coords: [
        [117.200983, 39.084158],
        [121.614682, 38.914003],
      ],
    },
    {
      fromName: '吉林',
      toName: '兴和',
      coords: [
        [126.549572, 43.837883],
        [113.834173, 40.872301],
      ],
    },
    {
      fromName: '河北',
      toName: '勃利',
      coords: [
        [114.475704, 38.584854],
        [130.592171, 45.755063],
      ],
    },
    {
      fromName: '吉林',
      toName: '大连',
      coords: [
        [126.549572, 43.837883],
        [121.614682, 38.914003],
      ],
    },
    {
      fromName: '吉林',
      toName: '沈阳',
      coords: [
        [126.549572, 43.837883],
        [123.431475, 41.805698],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '闵行',
      coords: [
        [126.661669, 45.742347],
        [121.381709, 31.112813],
      ],
    },
    {
      fromName: '天津',
      toName: '朝阳',
      coords: [
        [117.200983, 39.084158],
        [116.443108, 39.92147],
      ],
    },
    {
      fromName: '吉林',
      toName: '黄岛',
      coords: [
        [126.549572, 43.837883],
        [120.04619, 35.872664],
      ],
    },
    {
      fromName: '内蒙古',
      toName: '上海',
      coords: [
        [111.765618, 40.817498],
        [121.473701, 31.230416],
      ],
    },
    {
      fromName: '内蒙古',
      toName: '南京',
      coords: [
        [111.765618, 40.817498],
        [118.796877, 32.060255],
      ],
    },
    {
      fromName: '辽宁',
      toName: '杭州',
      coords: [
        [123.42944, 41.835441],
        [120.15507, 30.274085],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '海城',
      coords: [
        [126.661669, 45.742347],
        [122.685217, 40.882377],
      ],
    },
    {
      fromName: '吉林',
      toName: '西城',
      coords: [
        [126.549572, 43.837883],
        [116.365868, 39.912289],
      ],
    },
    {
      fromName: '四川',
      toName: '上海',
      coords: [
        [104.075931, 30.651652],
        [121.473701, 31.230416],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '西城',
      coords: [
        [126.661669, 45.742347],
        [116.365868, 39.912289],
      ],
    },
    {
      fromName: '吉林',
      toName: '丹东',
      coords: [
        [126.549572, 43.837883],
        [124.354707, 40.0005],
      ],
    },
    {
      fromName: '吉林',
      toName: '宁波',
      coords: [
        [126.549572, 43.837883],
        [121.550357, 29.874557],
      ],
    },
    {
      fromName: '辽宁',
      toName: '海淀',
      coords: [
        [123.42944, 41.835441],
        [116.298056, 39.959912],
      ],
    },
    {
      fromName: '辽宁',
      toName: '青岛',
      coords: [
        [123.42944, 41.835441],
        [120.38264, 36.067082],
      ],
    },
    {
      fromName: '吉林',
      toName: '苏州',
      coords: [
        [126.549572, 43.837883],
        [120.585316, 31.298886],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '抚顺',
      coords: [
        [126.661669, 45.742347],
        [123.957208, 41.880872],
      ],
    },
    {
      fromName: '吉林',
      toName: '临安',
      coords: [
        [126.549572, 43.837883],
        [119.724733, 30.233873],
      ],
    },
    {
      fromName: '辽宁',
      toName: '烟台',
      coords: [
        [123.42944, 41.835441],
        [121.447935, 37.463822],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '海淀',
      coords: [
        [126.661669, 45.742347],
        [116.298056, 39.959912],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '南昌',
      coords: [
        [126.661669, 45.742347],
        [115.858198, 28.682892],
      ],
    },
    {
      fromName: '内蒙古',
      toName: '沈阳',
      coords: [
        [111.765618, 40.817498],
        [123.431475, 41.805698],
      ],
    },
    {
      fromName: '山西',
      toName: '城阳',
      coords: [
        [112.562398, 37.873532],
        [120.39631, 36.307064],
      ],
    },
    {
      fromName: '吉林',
      toName: '广州',
      coords: [
        [126.549572, 43.837883],
        [113.264435, 23.129163],
      ],
    },
    {
      fromName: '上海',
      toName: '沈阳',
      coords: [
        [121.473701, 31.230416],
        [123.431475, 41.805698],
      ],
    },
    {
      fromName: '四川',
      toName: '阳泉',
      coords: [
        [104.075931, 30.651652],
        [113.580519, 37.856972],
      ],
    },
    {
      fromName: '河北',
      toName: '桦川',
      coords: [
        [114.475704, 38.584854],
        [130.719081, 47.023001],
      ],
    },
    {
      fromName: '内蒙古',
      toName: '海淀',
      coords: [
        [111.765618, 40.817498],
        [116.298056, 39.959912],
      ],
    },
    {
      fromName: '安徽',
      toName: '河北',
      coords: [
        [117.284923, 31.861184],
        [114.475704, 38.584854],
      ],
    },
    {
      fromName: '辽宁',
      toName: '呼和浩特',
      coords: [
        [123.42944, 41.835441],
        [111.749181, 40.842585],
      ],
    },
    {
      fromName: '广西',
      toName: '茂名',
      coords: [
        [108.327546, 22.815478],
        [110.925456, 21.662999],
      ],
    },
    {
      fromName: '吉林',
      toName: '东城',
      coords: [
        [126.549572, 43.837883],
        [116.416357, 39.928353],
      ],
    },
    {
      fromName: '内蒙古',
      toName: '盘锦',
      coords: [
        [111.765618, 40.817498],
        [122.070714, 41.119997],
      ],
    },
    {
      fromName: '山东',
      toName: '哈尔滨',
      coords: [
        [117.020359, 36.66853],
        [126.534967, 45.803775],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '沈阳',
      coords: [
        [126.661669, 45.742347],
        [123.431475, 41.805698],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '丰台',
      coords: [
        [126.661669, 45.742347],
        [116.287149, 39.858427],
      ],
    },
    {
      fromName: '四川',
      toName: '盘锦',
      coords: [
        [104.075931, 30.651652],
        [122.070714, 41.119997],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '皇姑',
      coords: [
        [126.661669, 45.742347],
        [123.44197, 41.824796],
      ],
    },
    {
      fromName: '河北',
      toName: '虎林',
      coords: [
        [114.475704, 38.584854],
        [132.93721, 45.762686],
      ],
    },
    {
      fromName: '辽宁',
      toName: '宝山',
      coords: [
        [123.42944, 41.835441],
        [131.401589, 46.577167],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '吉林',
      coords: [
        [126.661669, 45.742347],
        [126.549572, 43.837883],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '青岛',
      coords: [
        [126.661669, 45.742347],
        [120.38264, 36.067082],
      ],
    },
    {
      fromName: '吉林',
      toName: '烟台',
      coords: [
        [126.549572, 43.837883],
        [121.447935, 37.463822],
      ],
    },
    {
      fromName: '山东',
      toName: '临江',
      coords: [
        [117.020359, 36.66853],
        [126.918087, 41.811979],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '黄岛',
      coords: [
        [126.661669, 45.742347],
        [120.04619, 35.872664],
      ],
    },
    {
      fromName: '吉林',
      toName: '石家庄',
      coords: [
        [126.549572, 43.837883],
        [114.51486, 38.042307],
      ],
    },
    {
      fromName: '吉林',
      toName: '汤原',
      coords: [
        [126.549572, 43.837883],
        [129.905072, 46.730706],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '临江',
      coords: [
        [126.661669, 45.742347],
        [126.918087, 41.811979],
      ],
    },
    {
      fromName: '吉林',
      toName: '济南',
      coords: [
        [126.549572, 43.837883],
        [117.12, 36.651216],
      ],
    },
    {
      fromName: '吉林',
      toName: '太原',
      coords: [
        [126.549572, 43.837883],
        [112.548879, 37.87059],
      ],
    },
    {
      fromName: '吉林',
      toName: '威海',
      coords: [
        [126.549572, 43.837883],
        [122.12042, 37.513068],
      ],
    },
    {
      fromName: '湖北',
      toName: '深圳',
      coords: [
        [114.341862, 30.546498],
        [114.057868, 22.543099],
      ],
    },
    {
      fromName: '内蒙古',
      toName: '荣成',
      coords: [
        [111.765618, 40.817498],
        [122.486658, 37.16516],
      ],
    },
    {
      fromName: '辽宁',
      toName: '郑州',
      coords: [
        [123.42944, 41.835441],
        [113.625368, 34.7466],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '朝阳',
      coords: [
        [126.661669, 45.742347],
        [116.443108, 39.92147],
      ],
    },
    {
      fromName: '吉林',
      toName: '昆山',
      coords: [
        [126.549572, 43.837883],
        [120.980737, 31.385598],
      ],
    },
    {
      fromName: '吉林',
      toName: '双城',
      coords: [
        [126.549572, 43.837883],
        [126.312745, 45.383263],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '克拉玛依',
      coords: [
        [126.661669, 45.742347],
        [84.889207, 45.579889],
      ],
    },
    {
      fromName: '辽宁',
      toName: '上海',
      coords: [
        [123.42944, 41.835441],
        [121.473701, 31.230416],
      ],
    },
    {
      fromName: '吉林',
      toName: '海阳',
      coords: [
        [126.549572, 43.837883],
        [121.158434, 36.776378],
      ],
    },
    {
      fromName: '吉林',
      toName: '宣武门外东大街',
      coords: [
        [126.549572, 43.837883],
        [116.378888, 39.899332],
      ],
    },
    {
      fromName: '山东',
      toName: '海淀',
      coords: [
        [117.020359, 36.66853],
        [116.298056, 39.959912],
      ],
    },
    {
      fromName: '内蒙古',
      toName: '威海',
      coords: [
        [111.765618, 40.817498],
        [122.12042, 37.513068],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '晋中',
      coords: [
        [126.661669, 45.742347],
        [112.752695, 37.687024],
      ],
    },
    {
      fromName: '西藏',
      toName: '广州',
      coords: [
        [91.117212, 29.646923],
        [113.264435, 23.129163],
      ],
    },
    {
      fromName: '辽宁',
      toName: '无锡',
      coords: [
        [123.42944, 41.835441],
        [120.31191, 31.49117],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '城阳',
      coords: [
        [126.661669, 45.742347],
        [120.39631, 36.307064],
      ],
    },
    {
      fromName: '河北',
      toName: '丰台',
      coords: [
        [114.475704, 38.584854],
        [116.287149, 39.858427],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '扬州',
      coords: [
        [126.661669, 45.742347],
        [119.412966, 32.39421],
      ],
    },
    {
      fromName: '辽宁',
      toName: '天津',
      coords: [
        [123.42944, 41.835441],
        [117.200983, 39.084158],
      ],
    },
    {
      fromName: '吉林',
      toName: '扬州',
      coords: [
        [126.549572, 43.837883],
        [119.412966, 32.39421],
      ],
    },
    {
      fromName: '吉林',
      toName: '嘉兴',
      coords: [
        [126.549572, 43.837883],
        [120.755486, 30.746129],
      ],
    },
    {
      fromName: '河北',
      toName: '延寿',
      coords: [
        [114.475704, 38.584854],
        [128.331644, 45.451897],
      ],
    },
    {
      fromName: '吉林',
      toName: '义乌',
      coords: [
        [126.549572, 43.837883],
        [120.075058, 29.306841],
      ],
    },
    {
      fromName: '吉林',
      toName: '张家港',
      coords: [
        [126.549572, 43.837883],
        [120.553284, 31.870367],
      ],
    },
    {
      fromName: '辽宁',
      toName: '贵阳',
      coords: [
        [123.42944, 41.835441],
        [106.630154, 26.647661],
      ],
    },
    {
      fromName: '吉林',
      toName: '辽宁',
      coords: [
        [126.549572, 43.837883],
        [123.42944, 41.835441],
      ],
    },
    {
      fromName: '河南',
      toName: '营口',
      coords: [
        [113.274379, 34.445122],
        [122.235418, 40.667012],
      ],
    },
    {
      fromName: '吉林',
      toName: '合肥',
      coords: [
        [126.549572, 43.837883],
        [117.227239, 31.820587],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '苏州',
      coords: [
        [126.661669, 45.742347],
        [120.585316, 31.298886],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '榆树',
      coords: [
        [126.661669, 45.742347],
        [126.533146, 44.840288],
      ],
    },
    {
      fromName: '吉林',
      toName: '常熟',
      coords: [
        [126.549572, 43.837883],
        [120.752481, 31.654376],
      ],
    },
    {
      fromName: '吉林',
      toName: '乳山',
      coords: [
        [126.549572, 43.837883],
        [121.539765, 36.919816],
      ],
    },
    {
      fromName: '四川',
      toName: '青岛',
      coords: [
        [104.075931, 30.651652],
        [120.38264, 36.067082],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '深圳',
      coords: [
        [126.661669, 45.742347],
        [114.057868, 22.543099],
      ],
    },
    {
      fromName: '天津',
      toName: '东城',
      coords: [
        [117.200983, 39.084158],
        [116.416357, 39.928353],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '上海',
      coords: [
        [126.661669, 45.742347],
        [121.473701, 31.230416],
      ],
    },
    {
      fromName: '天津',
      toName: '宁波',
      coords: [
        [117.200983, 39.084158],
        [121.550357, 29.874557],
      ],
    },
    {
      fromName: '吉林',
      toName: '海门',
      coords: [
        [126.549572, 43.837883],
        [121.181615, 31.871173],
      ],
    },
    {
      fromName: '山西',
      toName: '沈阳',
      coords: [
        [112.562398, 37.873532],
        [123.431475, 41.805698],
      ],
    },
    {
      fromName: '吉林',
      toName: '成都',
      coords: [
        [126.549572, 43.837883],
        [104.066541, 30.572269],
      ],
    },
    {
      fromName: '吉林',
      toName: '南昌',
      coords: [
        [126.549572, 43.837883],
        [115.858198, 28.682892],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '常州',
      coords: [
        [126.661669, 45.742347],
        [119.973987, 31.810689],
      ],
    },
    {
      fromName: '内蒙古',
      toName: '兰山',
      coords: [
        [111.765618, 40.817498],
        [118.347707, 35.051729],
      ],
    },
    {
      fromName: '吉林',
      toName: '河南',
      coords: [
        [126.549572, 43.837883],
        [113.274379, 34.445122],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '福田',
      coords: [
        [126.661669, 45.742347],
        [114.055036, 22.52153],
      ],
    },
    {
      fromName: '吉林',
      toName: '常州',
      coords: [
        [126.549572, 43.837883],
        [119.973987, 31.810689],
      ],
    },
    {
      fromName: '吉林',
      toName: '双流',
      coords: [
        [126.549572, 43.837883],
        [103.923648, 30.574473],
      ],
    },
    {
      fromName: '吉林',
      toName: '潍坊',
      coords: [
        [126.549572, 43.837883],
        [119.161756, 36.706774],
      ],
    },
    {
      fromName: '吉林',
      toName: '延安',
      coords: [
        [126.549572, 43.837883],
        [109.489727, 36.585455],
      ],
    },
    {
      fromName: '辽宁',
      toName: '长春',
      coords: [
        [123.42944, 41.835441],
        [125.323544, 43.817072],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '南京',
      coords: [
        [126.661669, 45.742347],
        [118.796877, 32.060255],
      ],
    },
    {
      fromName: '辽宁',
      toName: '和平',
      coords: [
        [123.42944, 41.835441],
        [117.21451, 39.116949],
      ],
    },
    {
      fromName: '北京',
      toName: '哈尔滨',
      coords: [
        [116.407526, 39.90403],
        [126.534967, 45.803775],
      ],
    },
    {
      fromName: '吉林',
      toName: '武汉',
      coords: [
        [126.549572, 43.837883],
        [114.305393, 30.593099],
      ],
    },
    {
      fromName: '吉林',
      toName: '海陵',
      coords: [
        [126.549572, 43.837883],
        [119.919425, 32.491016],
      ],
    },
    {
      fromName: '吉林',
      toName: '日照',
      coords: [
        [126.549572, 43.837883],
        [119.526888, 35.416377],
      ],
    },
    {
      fromName: '吉林',
      toName: '台州',
      coords: [
        [126.549572, 43.837883],
        [121.420757, 28.656386],
      ],
    },
    {
      fromName: '辽宁',
      toName: '厦门',
      coords: [
        [123.42944, 41.835441],
        [118.089425, 24.479834],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '贵阳',
      coords: [
        [126.661669, 45.742347],
        [106.630154, 26.647661],
      ],
    },
    {
      fromName: '吉林',
      toName: '鞍山',
      coords: [
        [126.549572, 43.837883],
        [122.994329, 41.108647],
      ],
    },
    {
      fromName: '辽宁',
      toName: '荣成',
      coords: [
        [123.42944, 41.835441],
        [122.486658, 37.16516],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '天津',
      coords: [
        [126.661669, 45.742347],
        [117.200983, 39.084158],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '河西',
      coords: [
        [126.661669, 45.742347],
        [117.223372, 39.109563],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '秦皇岛',
      coords: [
        [126.661669, 45.742347],
        [119.600493, 39.935385],
      ],
    },
    {
      fromName: '吉林',
      toName: '荆州',
      coords: [
        [126.549572, 43.837883],
        [112.239741, 30.335165],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '东城',
      coords: [
        [126.661669, 45.742347],
        [116.416357, 39.928353],
      ],
    },
    {
      fromName: '吉林',
      toName: '即墨',
      coords: [
        [126.549572, 43.837883],
        [120.447128, 36.389639],
      ],
    },
    {
      fromName: '辽宁',
      toName: '西城',
      coords: [
        [123.42944, 41.835441],
        [116.365868, 39.912289],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '大兴',
      coords: [
        [126.661669, 45.742347],
        [116.341395, 39.726929],
      ],
    },
    {
      fromName: '河北',
      toName: '哈尔滨',
      coords: [
        [114.475704, 38.584854],
        [126.534967, 45.803775],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '江苏',
      coords: [
        [126.661669, 45.742347],
        [118.763232, 32.061707],
      ],
    },
    {
      fromName: '吉林',
      toName: '和平',
      coords: [
        [126.549572, 43.837883],
        [117.21451, 39.116949],
      ],
    },
    {
      fromName: '江苏',
      toName: '鸡东',
      coords: [
        [118.763232, 32.061707],
        [131.12408, 45.260412],
      ],
    },
    {
      fromName: '辽宁',
      toName: '辉南',
      coords: [
        [123.42944, 41.835441],
        [126.046912, 42.684993],
      ],
    },
    {
      fromName: '吉林',
      toName: '深圳',
      coords: [
        [126.549572, 43.837883],
        [114.057868, 22.543099],
      ],
    },
    {
      fromName: '福建',
      toName: '泰顺',
      coords: [
        [119.295144, 26.10078],
        [119.717649, 27.556884],
      ],
    },
    {
      fromName: '上海',
      toName: '深圳',
      coords: [
        [121.473701, 31.230416],
        [114.057868, 22.543099],
      ],
    },
    {
      fromName: '吉林',
      toName: '秦皇岛',
      coords: [
        [126.549572, 43.837883],
        [119.600493, 39.935385],
      ],
    },
    {
      fromName: '吉林',
      toName: '徐汇',
      coords: [
        [126.549572, 43.837883],
        [121.436525, 31.188523],
      ],
    },
    {
      fromName: '吉林',
      toName: '石景山',
      coords: [
        [126.549572, 43.837883],
        [116.222982, 39.906611],
      ],
    },
    {
      fromName: '辽宁',
      toName: '城阳',
      coords: [
        [123.42944, 41.835441],
        [120.39631, 36.307064],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '威海',
      coords: [
        [126.661669, 45.742347],
        [122.12042, 37.513068],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '惠州',
      coords: [
        [126.661669, 45.742347],
        [114.416196, 23.111847],
      ],
    },
    {
      fromName: '吉林',
      toName: '龙口',
      coords: [
        [126.549572, 43.837883],
        [120.477813, 37.646108],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '四平',
      coords: [
        [126.661669, 45.742347],
        [124.350398, 43.16642],
      ],
    },
    {
      fromName: '吉林',
      toName: '南充',
      coords: [
        [126.549572, 43.837883],
        [106.110698, 30.837793],
      ],
    },
    {
      fromName: '河北',
      toName: '东港',
      coords: [
        [114.475704, 38.584854],
        [124.152705, 39.863008],
      ],
    },
    {
      fromName: '辽宁',
      toName: '西安',
      coords: [
        [123.42944, 41.835441],
        [108.940175, 34.341568],
      ],
    },
    {
      fromName: '内蒙古',
      toName: '滨海',
      coords: [
        [111.765618, 40.817498],
        [119.820831, 33.990334],
      ],
    },
    {
      fromName: '河南',
      toName: '青岛',
      coords: [
        [113.274379, 34.445122],
        [120.38264, 36.067082],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '昆山',
      coords: [
        [126.661669, 45.742347],
        [120.980737, 31.385598],
      ],
    },
    {
      fromName: '辽宁',
      toName: '长沙',
      coords: [
        [123.42944, 41.835441],
        [112.938814, 28.228209],
      ],
    },
    {
      fromName: '吉林',
      toName: '哈尔滨',
      coords: [
        [126.549572, 43.837883],
        [126.534967, 45.803775],
      ],
    },
    {
      fromName: '河北',
      toName: '尚志',
      coords: [
        [114.475704, 38.584854],
        [128.009895, 45.209586],
      ],
    },
    {
      fromName: '辽宁',
      toName: '东城',
      coords: [
        [123.42944, 41.835441],
        [116.416357, 39.928353],
      ],
    },
    {
      fromName: '辽宁',
      toName: '珠海',
      coords: [
        [123.42944, 41.835441],
        [113.576726, 22.270715],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '铁岭',
      coords: [
        [126.661669, 45.742347],
        [123.726166, 42.223769],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '蓬莱',
      coords: [
        [126.661669, 45.742347],
        [120.758848, 37.810661],
      ],
    },
    {
      fromName: '北京',
      toName: '天津',
      coords: [
        [116.407526, 39.90403],
        [117.200983, 39.084158],
      ],
    },
    {
      fromName: '内蒙古',
      toName: '天津',
      coords: [
        [111.765618, 40.817498],
        [117.200983, 39.084158],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '宁波',
      coords: [
        [126.661669, 45.742347],
        [121.550357, 29.874557],
      ],
    },
    {
      fromName: '吉林',
      toName: '上海',
      coords: [
        [126.549572, 43.837883],
        [121.473701, 31.230416],
      ],
    },
    {
      fromName: '辽宁',
      toName: '佛山',
      coords: [
        [123.42944, 41.835441],
        [113.121416, 23.021548],
      ],
    },
    {
      fromName: '吉林',
      toName: '长宁',
      coords: [
        [126.549572, 43.837883],
        [121.424624, 31.220367],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '珲春',
      coords: [
        [126.661669, 45.742347],
        [130.366036, 42.862821],
      ],
    },
    {
      fromName: '山东',
      toName: '黄浦',
      coords: [
        [117.020359, 36.66853],
        [121.484443, 31.231763],
      ],
    },
    {
      fromName: '辽宁',
      toName: '威海',
      coords: [
        [123.42944, 41.835441],
        [122.12042, 37.513068],
      ],
    },
    {
      fromName: '天津',
      toName: '长春',
      coords: [
        [117.200983, 39.084158],
        [125.323544, 43.817072],
      ],
    },
    {
      fromName: '新疆',
      toName: '上海',
      coords: [
        [87.627704, 43.793026],
        [121.473701, 31.230416],
      ],
    },
    {
      fromName: '河北',
      toName: '鸡西',
      coords: [
        [114.475704, 38.584854],
        [130.969333, 45.295075],
      ],
    },
    {
      fromName: '陕西',
      toName: '呼和浩特',
      coords: [
        [108.954239, 34.265472],
        [111.749181, 40.842585],
      ],
    },
    {
      fromName: '吉林',
      toName: '连云港',
      coords: [
        [126.549572, 43.837883],
        [119.221611, 34.596653],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '杭州',
      coords: [
        [126.661669, 45.742347],
        [120.15507, 30.274085],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '嘉兴',
      coords: [
        [126.661669, 45.742347],
        [120.755486, 30.746129],
      ],
    },
    {
      fromName: '陕西',
      toName: '盘锦',
      coords: [
        [108.954239, 34.265472],
        [122.070714, 41.119997],
      ],
    },
    {
      fromName: '河北',
      toName: '同江',
      coords: [
        [114.475704, 38.584854],
        [132.510919, 47.642707],
      ],
    },
    {
      fromName: '吉林',
      toName: '杭州',
      coords: [
        [126.549572, 43.837883],
        [120.15507, 30.274085],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '舟山',
      coords: [
        [126.661669, 45.742347],
        [122.207216, 29.985295],
      ],
    },
    {
      fromName: '河南',
      toName: '大连',
      coords: [
        [113.274379, 34.445122],
        [121.614682, 38.914003],
      ],
    },
    {
      fromName: '辽宁',
      toName: '绵阳',
      coords: [
        [123.42944, 41.835441],
        [104.679114, 31.46745],
      ],
    },
    {
      fromName: '吉林',
      toName: '溆浦',
      coords: [
        [126.549572, 43.837883],
        [110.594921, 27.908281],
      ],
    },
    {
      fromName: '吉林',
      toName: '朝阳',
      coords: [
        [126.549572, 43.837883],
        [116.443108, 39.92147],
      ],
    },
    {
      fromName: '吉林',
      toName: '无锡',
      coords: [
        [126.549572, 43.837883],
        [120.31191, 31.49117],
      ],
    },
    {
      fromName: '浙江',
      toName: '沈阳',
      coords: [
        [120.152792, 30.267447],
        [123.431475, 41.805698],
      ],
    },
    {
      fromName: '吉林',
      toName: '湖里',
      coords: [
        [126.549572, 43.837883],
        [118.146769, 24.512905],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '无锡',
      coords: [
        [126.661669, 45.742347],
        [120.31191, 31.49117],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '长宁',
      coords: [
        [126.661669, 45.742347],
        [121.424624, 31.220367],
      ],
    },
    {
      fromName: '辽宁',
      toName: '胶州',
      coords: [
        [123.42944, 41.835441],
        [120.033382, 36.26468],
      ],
    },
    {
      fromName: '吉林',
      toName: '青岛',
      coords: [
        [126.549572, 43.837883],
        [120.38264, 36.067082],
      ],
    },
    {
      fromName: '河北',
      toName: '海淀',
      coords: [
        [114.475704, 38.584854],
        [116.298056, 39.959912],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '厦门',
      coords: [
        [126.661669, 45.742347],
        [118.089425, 24.479834],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '中山',
      coords: [
        [126.661669, 45.742347],
        [113.392782, 22.517646],
      ],
    },
    {
      fromName: '河北',
      toName: '太原',
      coords: [
        [114.475704, 38.584854],
        [112.548879, 37.87059],
      ],
    },
    {
      fromName: '新疆',
      toName: '吉林',
      coords: [
        [87.627704, 43.793026],
        [126.549572, 43.837883],
      ],
    },
    {
      fromName: '吉林',
      toName: '武侯',
      coords: [
        [126.549572, 43.837883],
        [104.04339, 30.641982],
      ],
    },
    {
      fromName: '北京',
      toName: '廊坊',
      coords: [
        [116.407526, 39.90403],
        [116.683752, 39.538047],
      ],
    },
    {
      fromName: '浙江',
      toName: '临汾',
      coords: [
        [120.152792, 30.267447],
        [111.518976, 36.088005],
      ],
    },
    {
      fromName: '湖北',
      toName: '天津',
      coords: [
        [114.341862, 30.546498],
        [117.200983, 39.084158],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '泉州',
      coords: [
        [126.661669, 45.742347],
        [118.675676, 24.874132],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '温州',
      coords: [
        [126.661669, 45.742347],
        [120.699367, 27.994267],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '唐山',
      coords: [
        [126.661669, 45.742347],
        [118.180194, 39.630867],
      ],
    },
    {
      fromName: '北京',
      toName: '铁岭',
      coords: [
        [116.407526, 39.90403],
        [123.726166, 42.223769],
      ],
    },
    {
      fromName: '辽宁',
      toName: '即墨',
      coords: [
        [123.42944, 41.835441],
        [120.447128, 36.389639],
      ],
    },
    {
      fromName: '北京',
      toName: '上海',
      coords: [
        [116.407526, 39.90403],
        [121.473701, 31.230416],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '广州',
      coords: [
        [126.661669, 45.742347],
        [113.264435, 23.129163],
      ],
    },
    {
      fromName: '吉林',
      toName: '廊坊',
      coords: [
        [126.549572, 43.837883],
        [116.683752, 39.538047],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '荣成',
      coords: [
        [126.661669, 45.742347],
        [122.486658, 37.16516],
      ],
    },
    {
      fromName: '吉林',
      toName: '海城',
      coords: [
        [126.549572, 43.837883],
        [122.685217, 40.882377],
      ],
    },
    {
      fromName: '湖南',
      toName: '沈阳',
      coords: [
        [112.98381, 28.112444],
        [123.431475, 41.805698],
      ],
    },
    {
      fromName: '北京',
      toName: '青岛',
      coords: [
        [116.407526, 39.90403],
        [120.38264, 36.067082],
      ],
    },
    {
      fromName: '河北',
      toName: '大连',
      coords: [
        [114.475704, 38.584854],
        [121.614682, 38.914003],
      ],
    },
    {
      fromName: '内蒙古',
      toName: '珠海',
      coords: [
        [111.765618, 40.817498],
        [113.576726, 22.270715],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '房山',
      coords: [
        [126.661669, 45.742347],
        [116.143267, 39.749144],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '金坛',
      coords: [
        [126.661669, 45.742347],
        [119.597897, 31.723247],
      ],
    },
    {
      fromName: '河北',
      toName: '齐齐哈尔',
      coords: [
        [114.475704, 38.584854],
        [126.661669, 45.742347],
      ],
    },
    {
      fromName: '吉林',
      toName: '大兴',
      coords: [
        [126.549572, 43.837883],
        [116.341395, 39.726929],
      ],
    },
    {
      fromName: '吉林',
      toName: '密云',
      coords: [
        [126.549572, 43.837883],
        [116.801346, 40.35874],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '和平',
      coords: [
        [126.661669, 45.742347],
        [117.21451, 39.116949],
      ],
    },
    {
      fromName: '内蒙古',
      toName: '龙井',
      coords: [
        [111.765618, 40.817498],
        [129.427066, 42.766311],
      ],
    },
    {
      fromName: '吉林',
      toName: '道里',
      coords: [
        [126.549572, 43.837883],
        [126.616957, 45.755777],
      ],
    },
    {
      fromName: '山东',
      toName: '武汉',
      coords: [
        [117.020359, 36.66853],
        [114.305393, 30.593099],
      ],
    },
    {
      fromName: '甘肃',
      toName: '常熟',
      coords: [
        [103.826308, 36.059421],
        [120.752481, 31.654376],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '烟台',
      coords: [
        [126.661669, 45.742347],
        [121.447935, 37.463822],
      ],
    },
    {
      fromName: '吉林',
      toName: '海淀',
      coords: [
        [126.549572, 43.837883],
        [116.298056, 39.959912],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '长沙',
      coords: [
        [126.661669, 45.742347],
        [112.938814, 28.228209],
      ],
    },
    {
      fromName: '天津',
      toName: '石家庄',
      coords: [
        [117.200983, 39.084158],
        [114.51486, 38.042307],
      ],
    },
    {
      fromName: '吉林',
      toName: '佛山',
      coords: [
        [126.549572, 43.837883],
        [113.121416, 23.021548],
      ],
    },
    {
      fromName: '辽宁',
      toName: '黄骅',
      coords: [
        [123.42944, 41.835441],
        [117.330048, 38.371383],
      ],
    },
    {
      fromName: '内蒙古',
      toName: '中山',
      coords: [
        [111.765618, 40.817498],
        [113.392782, 22.517646],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '北京',
      coords: [
        [126.661669, 45.742347],
        [116.407526, 39.90403],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '三河',
      coords: [
        [126.661669, 45.742347],
        [117.078295, 39.982718],
      ],
    },
    {
      fromName: '河北',
      toName: '庆安',
      coords: [
        [114.475704, 38.584854],
        [127.507825, 46.880102],
      ],
    },
    {
      fromName: '吉林',
      toName: '长沙',
      coords: [
        [126.549572, 43.837883],
        [112.938814, 28.228209],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '西安',
      coords: [
        [126.661669, 45.742347],
        [108.940175, 34.341568],
      ],
    },
    {
      fromName: '内蒙古',
      toName: '朝阳',
      coords: [
        [111.765618, 40.817498],
        [116.443108, 39.92147],
      ],
    },
    {
      fromName: '辽宁',
      toName: '丰台',
      coords: [
        [123.42944, 41.835441],
        [116.287149, 39.858427],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '延吉',
      coords: [
        [126.661669, 45.742347],
        [129.508946, 42.891255],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '长春',
      coords: [
        [126.661669, 45.742347],
        [125.323544, 43.817072],
      ],
    },
    {
      fromName: '吉林',
      toName: '天津',
      coords: [
        [126.549572, 43.837883],
        [117.200983, 39.084158],
      ],
    },
    {
      fromName: '吉林',
      toName: '昌平',
      coords: [
        [126.549572, 43.837883],
        [116.231204, 40.22066],
      ],
    },
    {
      fromName: '吉林',
      toName: '赣州',
      coords: [
        [126.549572, 43.837883],
        [114.93503, 25.831829],
      ],
    },
    {
      fromName: '吉林',
      toName: '厦门',
      coords: [
        [126.549572, 43.837883],
        [118.089425, 24.479834],
      ],
    },
    {
      fromName: '内蒙古',
      toName: '秦皇岛',
      coords: [
        [111.765618, 40.817498],
        [119.600493, 39.935385],
      ],
    },
    {
      fromName: '内蒙古',
      toName: '菏泽',
      coords: [
        [111.765618, 40.817498],
        [115.480656, 35.23375],
      ],
    },
    {
      fromName: '吉林',
      toName: '闵行',
      coords: [
        [126.549572, 43.837883],
        [121.381709, 31.112813],
      ],
    },
    {
      fromName: '辽宁',
      toName: '石景山',
      coords: [
        [123.42944, 41.835441],
        [116.222982, 39.906611],
      ],
    },
    {
      fromName: '吉林',
      toName: '珠海',
      coords: [
        [126.549572, 43.837883],
        [113.576726, 22.270715],
      ],
    },
    {
      fromName: '内蒙古',
      toName: '青岛',
      coords: [
        [111.765618, 40.817498],
        [120.38264, 36.067082],
      ],
    },
    {
      fromName: '北京',
      toName: '海门',
      coords: [
        [116.407526, 39.90403],
        [121.181615, 31.871173],
      ],
    },
    {
      fromName: '内蒙古',
      toName: '长春',
      coords: [
        [111.765618, 40.817498],
        [125.323544, 43.817072],
      ],
    },
    {
      fromName: '吉林',
      toName: '城阳',
      coords: [
        [126.549572, 43.837883],
        [120.39631, 36.307064],
      ],
    },
    {
      fromName: '吉林',
      toName: '大同',
      coords: [
        [126.549572, 43.837883],
        [113.61244, 40.040295],
      ],
    },
    {
      fromName: '湖北',
      toName: '邢台',
      coords: [
        [114.341862, 30.546498],
        [114.504844, 37.070589],
      ],
    },
    {
      fromName: '吉林',
      toName: '胶州',
      coords: [
        [126.549572, 43.837883],
        [120.033382, 36.26468],
      ],
    },
    {
      fromName: '吉林',
      toName: '重庆',
      coords: [
        [126.549572, 43.837883],
        [106.551557, 29.56301],
      ],
    },
    {
      fromName: '河北',
      toName: '佳木斯',
      coords: [
        [114.475704, 38.584854],
        [130.318917, 46.799923],
      ],
    },
    {
      fromName: '甘肃',
      toName: '大连',
      coords: [
        [103.826308, 36.059421],
        [121.614682, 38.914003],
      ],
    },
    {
      fromName: '吉林',
      toName: '南京',
      coords: [
        [126.549572, 43.837883],
        [118.796877, 32.060255],
      ],
    },
    {
      fromName: '内蒙古',
      toName: '日照',
      coords: [
        [111.765618, 40.817498],
        [119.526888, 35.416377],
      ],
    },
    {
      fromName: '吉林',
      toName: '鸡东',
      coords: [
        [126.549572, 43.837883],
        [131.12408, 45.260412],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '即墨',
      coords: [
        [126.661669, 45.742347],
        [120.447128, 36.389639],
      ],
    },
    {
      fromName: '江苏',
      toName: '朝阳',
      coords: [
        [118.763232, 32.061707],
        [116.443108, 39.92147],
      ],
    },
    {
      fromName: '吉林',
      toName: '南通',
      coords: [
        [126.549572, 43.837883],
        [120.894291, 31.980172],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '张家港',
      coords: [
        [126.661669, 45.742347],
        [120.553284, 31.870367],
      ],
    },
    {
      fromName: '吉林',
      toName: '三河',
      coords: [
        [126.549572, 43.837883],
        [117.078295, 39.982718],
      ],
    },
    {
      fromName: '吉林',
      toName: '咸阳',
      coords: [
        [126.549572, 43.837883],
        [108.708991, 34.329605],
      ],
    },
    {
      fromName: '吉林',
      toName: '中山',
      coords: [
        [126.549572, 43.837883],
        [113.392782, 22.517646],
      ],
    },
    {
      fromName: '黑龙江',
      toName: '胶州',
      coords: [
        [126.661669, 45.742347],
        [120.033382, 36.26468],
      ],
    },
  ],};
export default class conterTop extends Component {

   state={
    option : {
        backgroundColor: '#050b1e', // 地图背景颜色
        title: {
            // text: '迁徙图', // 地图标题设置
            // subtext:"123321", // 地图小标题设置
            sublink:"http://www.baidu.com", //小标题链接
            target:"blank", //'self' 当前窗口打开，'blank' 新窗口打开
            padding:5, // 标题内边距 5  [5, 10]  [5,10,5,10]
            left:"center", // 组件离容器左侧的距离,'left', 'center', 'right','20%'
            top:"5%", // 组件离容器上侧的距离,'top', 'middle', 'bottom','20%'
            right:"auto", // 组件离容器右侧的距离,'20%'
            bottom:"auto", // 组件离容器下侧的距离,'20%'
            textStyle: {
              color:"#fff", //文字颜色
              fontStyle:"normal", // italic斜体  oblique倾斜
              fontWeight:"normal", // 文字粗细bold   bolder   lighter  100 | 200 | 300 | 400...
              fontFamily:"sans-serif", // 字体系列
              fontSize:18, // 字体大小
            }
        },
        legend: { // 右下角图例
            show: false, // 是否显示
            orient: 'vertical', // 图例排列方向
            top: 'bottom', // 位置
            left: 'right', // 位置
            data: ['地点', '线路'], // 数据
            textStyle: { // 文字设置
                color: '#fff'
            }
        },
        geo: {
            show:true, // 是否显示
            map: 'china', // 地图类型。world世界地图，china中国地图
          // center:[115.97, 29.71], //当前视角的中心点，用经纬度表示
            label: {
              normal:{ //普通状态下的标签文本样式。(省份名称)
                show: false, //是否在普通状态下显示标签。
                textStyle: { // 文字设置
                  color: '#fff'
                },
              },
              emphasis: { // 是否在高亮状态下显示标签。(省份名称)
                show: true,
                textStyle: { // 文字设置
                  color: '#fff'
                },
              }
            },
            roam: true, // 是否开启鼠标缩放和平移漫游。默认不开启。如果只想要开启缩放或者平移，可以设置成 'scale' 或者 'move'。设置成 true 为都开启
            itemStyle: { // 地图板块区域的多边形 图形样式
                normal: { // 默认板块信息
                    areaColor: '#222',
                    borderColor: '#404a59'
                },
                emphasis: { // 高亮版板块信息
                    areaColor: '#2a333d'
                }
            }
        },
        series: [{
            name: '地点',
            type: 'effectScatter', // 特效散点图
            coordinateSystem: 'geo', // 'cartesian2d'使用二维的直角坐标系。'geo'使用地理坐标系
            zlevel: 2, // 所有图形的 zlevel 值。
            rippleEffect: { //涟漪特效相关配置。
                brushType: 'stroke', //波纹的绘制方式，可选 'stroke' 和 'fill'。
                period:4, // 动画的时间。
                scale:2.5, // 动画中波纹的最大缩放比例。
            },
            label: {
                normal: {
                  show: false,                  //是否显示标签。
                  position: "inside",          //标签的位置。// 绝对的像素值[10, 10]
                  offset: [30, 40],             //是否对文字进行偏移。默认不偏移。例如：[30, 40] 表示文字在横向上偏移 30，纵向上偏移 40。
                  formatter: '{b}: {c}',       //标签内容格式器。模板变量有 {a}、{b}、{c}，分别表示系列名，数据名，数据值。
                },
                emphasis: {
                    show: true,
                    position: 'right',
                    formatter: '{b}'
                }
            },
            symbolSize: 2, // 标记的大小，可以设置成诸如 10 这样单一的数字，也可以用数组分开表示宽和高，例如 [20, 10] 表示标记宽为20，高为10。
            showEffectOn: 'render', // 配置何时显示特效。可选：'render' 绘制完成后显示特效。'emphasis' 高亮（hover）的时候显示特效。
            itemStyle: { // 图形样式，normal 是图形在默认状态下的样式；emphasis 是图形在高亮状态下的样式，比如在鼠标悬浮或者图例联动高亮时。
                normal: {
                    color: '#46bee9'
                }
            },
            data: allData.citys
        }, {
            name: '线路',
            type: 'lines',
            coordinateSystem: 'geo', // 'cartesian2d'使用二维的直角坐标系。'geo'使用地理坐标系
            zlevel: 2,
            large: true, // 是否开启大规模散点图的优化，在数据图形特别多的时候（>=5k）可以开启。开启后配合 largeThreshold 在数据量大于指定阈值的时候对绘制进行优化。缺点：优化后不能自定义设置单个数据项的样式。
            effect: {
                show: true,
                constantSpeed: 30, // 点移动的速度
                symbol: 'pin',  // 图形 'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow'
                symbolSize: 3, // 标记的大小，可以设置成诸如 10 这样单一的数字，也可以用数组分开表示宽和高，例如 [20, 10] 表示标记宽为20，高为10。
                trailLength: 0, // 线的宽度
            },
            lineStyle: { // 线的颜色、宽度，样式设置
                normal: {
                    color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                        offset: 0, color: '#58B3CC'
                    }, {
                        offset: 1, color: '#F58158'
                    }], false),
                    width: 1, // 线的宽度
                    opacity: 0.2, // 线的透明度
                    curveness: 0.1 // 线的完全程度
                }
            },
            data: allData.moveLines
        }]
    }
   }

    componentDidMount(){
       this.chart=echarts.init(this.el);
       this.chart.setOption(this.state.option)
    }
   
    render() {
        return (
            <div className='conterTop'>
                <div className='china' ref={el=>(this.el=el)}></div>
            </div>
        )
    }
}

